﻿namespace PoemGame.UOW
{
    /// <summary>
    /// 工作单元的定义
    /// </summary>
    public interface IUnitOfWork
    {
        /// <summary>
        /// 保存改变
        /// </summary>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        Task<int> SaveChangesAsync(CancellationToken cancellationToken = default);
    }
}